using System.Collections.Generic;
using LF.Domain.Entities;

namespace LF.Domain.Services
{
    /// <summary>
    /// 权限数据库操作服务接口
    /// </summary>
    public interface IPermissionDbService : IDomainService
    {
        /// <summary>
        /// 根据扫描到的权限更新数据库
        /// </summary>
        void SavePermissionsToDatabase(List<Permission> scannedPermissions);

        /// <summary>
        /// 获取所有权限列表
        /// </summary>
        List<Permission> GetAllPermissions();

        /// <summary>
        /// 根据编码获取权限
        /// </summary>
        Permission GetPermissionByCode(string code);
    }
} 